﻿using System;
using System.Collections.Generic; 
using System.Text;
using ATSModel;
using ATSIDAL;

namespace ATSBLL
{
    public class Airtightness : BaseService<AirtightnessInfo>
    {

        private static readonly IAirtightness dal = DALFactory.DataAccess.CreateAirtightness();
        public override void SetCurrentRepository()
        {
            CurrentRepository = dal;
        }

        public IList<AirtightnessInfo> Airtightness_SelectbySN(string productSN)
        {
            return dal.Airtightness_SelectbySN(productSN);
        }

        public IList<AirtightnessInfo> Airtightness_SelectbyDT(DateTime startTime, DateTime stopTime)
        {
            return dal.Airtightness_SelectbyDT(startTime, stopTime);
        }

        public IList<AirtightnessInfo> Airtightness_SelectbyPIDDT(string productTypeID, DateTime startTime, DateTime stopTime)
        {
            return dal.Airtightness_SelectbyPIDDT(productTypeID, startTime, stopTime);
        }

        public IList<AirtightnessInfo> GetAirtightnessByMO(string MO)
        {
            return dal.GetAirtightnessByMO(MO);
        }

        public IList<AirtightnessInfo> Airtightness_SelectbyPType(string ptype)
        {
            return dal.Airtightness_SelectbyPType(ptype);
        }


        public  AirtightnessInfo AirSelectbySN(string productSN)
        {
            return dal.AirSelectbySN(productSN);
        }
    }
}
